let fs=require('fs')
let Router=require('koa-router')
let router=new Router()
fs.readdirSync(__dirname).forEach(item=>{
    if(item!=='index.js'){
        let r=require('./'+item)
        router.use(r.routes())
    }
})

module.exports=router